<ui:composition template="/WEB-INF/templates/employee/base.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<ui:define name="title">Creazione Trasporto</ui:define>

	<ui:define name="content">
		<h:form>
			<p:fragment autoUpdate="true">
				<h:panelGrid columns="3" id="transportGrid">
					<h:outputLabel value="Nome:" />
					<p:inputText id="name" value="#{transportBean.transport.name}" />
					<p:message for="name" />

					<h:outputLabel value="Descrizione:" />
					<p:inputTextarea id="description" value="#{transportBean.transport.description}" />
					<p:message for="description" />

					<h:outputLabel value="Prezzo:" />
					<p:inputText id="price" value="#{transportBean.transport.price}" />
					<p:message for="price" />

					<h:outputLabel value="Partenza:" />
					<p:inputText id="origin" value="#{transportBean.transport.origin}" />
					<p:message for="origin" />

					<h:outputLabel value="Arrivo:" />
					<p:inputText id="destination" value="#{transportBean.transport.destination}" />
					<p:message for="destination" />

					<h:outputLabel value="Tipo:" />
					<p:inputText disabled="true" id="type" value="#{transportBean.transport.type}" />
					<p:message for="type" />
				</h:panelGrid>
				<p:commandButton value="Salva" action="#{transportBean.save}" />
			</p:fragment>
		</h:form>
	</ui:define>
</ui:composition>